/* Archivo CSS: define estilos para navegación, contenido y efectos */

/* Estilos del contenedor de navegación (barra superior) */
/*
  archivo: styles.css
  descripción: Estilos globales para Otra Visión.
  Incluye navegación, burbuja, listados, botones, y layout responsivo.
*/

/* NAV BAR: contenedor fijo, alineación y efecto glass */
nav {
  padding: 2.5px 0px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(82, 80, 80, 0.2);
  backdrop-filter: blur(8px) brightness(0.8);
  -webkit-backdrop-filter: blur(8px) brightness(0.8);
  border-bottom: 0.3px solid rgba(255,255,255,0.3);
  border-radius: 0 0 10px 10px;
}
/* NAV LIST: config. flex, espacio y centrado */
/* .nav-bar rule removed: not used and may conflict with nav styles */
.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;              /* NUEVO – se parte cuando falta espacio */
  gap:30px;
  align-items:center;
  justify-content:center;
}
/* NAV ITEM: contenedor de cada enlace */
.nav-list li {
  display: inline-block;
}
/* NAV LINK: estilos de enlace y posicionamiento */
.nav-list a {
    position: relative;
  z-index: 1;
  color: #f4c97d;
  text-decoration: none;
  padding: 18px 10px;
  display: block;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border-bottom: 2px solid transparent;
  z-index: 1; /* sobre la burbuja */
}

/* NAV LINK HOVER: aumenta ligeramente el tamaño al pasar el cursor */
.nav-list a:hover:not(.active) {
  color: hsla(53, 100%, 96%, 0.784);
  transform: scale(0.95);
}

/* NAV LINK ACTIVE: tamaño destacado mientras esté activa */
.nav-list a.active {
  color: #ffffff;
  transform: scale(1.01);
}
/* EPISODES LIST: layout horizontal de capítulos */
.episodes-list {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
}
.episodes-list > li {
  margin: 0;
}

/* BUBBLE EFFECT: vidrio líquido tras enlaces */
.episodes-list > li {
  margin: 0;
}
.nav-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%; /* Se ajustará en JS */
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(5px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) brightness(0.8);
  border-top: 0.7px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  transition: left 0.3s ease, width 0.3s ease, top 0.3s ease, height 0.3s ease;
  pointer-events: none; /* Para no bloquear clics */
}
/* Optional smaller secondary highlight */

/* Contenedor relativo para burbuja */
.nav-container {
  position: relative;
}
/* Burbuja translúcida de vidrio líquido tras enlaces */
.nav-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%; /* Se ajustará en JS */
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(5px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) brightness(0.8);
  border-top: 0.7px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  transition: left 0.3s ease, width 0.3s ease, top 0.3s ease, height 0.3s ease;
  pointer-events: none; /* Para no bloquear clics */
}

/* Hide bubble until logo is ready to avoid layout shift */
.nav-bubble{ visibility: hidden; }
.nav-bubble.ready{ visibility: visible; }

/* SECTION CONTENT: ocultar por defecto */
.tab-content {
  display: none;
  padding: 20px;
}
/* SECTION ACTIVE: muestra sección activa */
.tab-content.active {
  display: block;
}


/* GLOBAL: centrado de contenido */
body {
  text-align: center;
}

/* Asegura espacio superior igual a la altura de la navbar fija */
body {
  padding-top: 60px; /* ajusta según la altura real del nav: e.g., 60px */
}
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  justify-content: space-between;
  padding: 0;
  margin-bottom: auto;
  background: rgba(82, 80, 80, 0.2);
  backdrop-filter: blur(8px) brightness(0.8);
  -webkit-backdrop-filter: blur(8px) brightness(0.8);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.171);
  color: #fff;
  border-radius: 12px;
}
.footer-section {
  flex: 1 1 0px;
  min-width: 150px;
}
.footer-section h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.footer-contact a,
.footer-legal a {
  color: #f4c97d;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover,
.footer-legal a:hover {
  color: #fff;
}
.footer-social a {
  margin-right: 10px;
}
.footer-social img {
  width: 20px;
  height: 20px;
  margin-top: 10px;
}

/* Responsive footer: stack sections vertically on narrow screens */
@media (max-width: 700px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
    max-height: none;      /* remove height limit */
    overflow-y: auto;   /* allow content to show fully */
  }
  .footer-section {
    width: 100%;
    margin-bottom: 15px;
    font-size: 0.9rem;
  }
  /* Reorder sections: social first, then contact, then legal */
  .footer-social { order: 1; }
  .footer-contact { order: 2; }
  .footer-legal   { order: 3; }
}

/* DARK MODE OVERLAY: capa semitransparente solo en modo oscuro */
.dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
@media (prefers-color-scheme: dark) {
  .dark-overlay {
    opacity: 0.5;
  }
}
/* Muestra la capa oscura cuando se aplica la clase `dark-mode` al body */
.dark-mode .dark-overlay {
  opacity: 1;
}

/* Añade espacio extra debajo de cada párrafo */
.texto-vidrio {
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px) ;
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  max-width: 700px; /* ajustable */
  overflow: hidden;
  border-radius: 12px;
  backdrop-filter: blur(5px) brightness(0.7);
  color:#ffffff
}
.texto-vidrio2 {
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(4px) ;
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  max-width: 550px; /* ajustable */
  overflow: hidden;
  border-radius: 12px;
  backdrop-filter: blur(5px) brightness(0.7);
  color:#ffffff
}
.texto-vidrio3 {
  margin: 10px auto;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  max-width: 430px; /* ajustable */
  overflow: hidden;
  border-radius: 5px;
  backdrop-filter: blur(5px) brightness(0.7);
  color:#ffffff;
}
.texto-vidrio4 {
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px) brightness(0.8);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  max-width: 350px; /* ajustable */
  overflow: hidden;
  border-radius: 18px;
  backdrop-filter: blur(5px) brightness(0.7);
  color:#ffffff
}
.texto-vidrio5 {
  margin: 50px auto;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px) brightness(0.8);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  max-width: 450px; /* ajustable */
  overflow: hidden;
  border-radius: 18px;
  backdrop-filter: blur(4px) brightness(0.7);
  color:#ffffff
}
/* Streaming dropdown styles */
.streaming-container {
  display: inline-block;
  position: relative;
}

.streaming-btn {
  padding: 10px 30px;
  margin: 10px 5px 20px 0;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(7px) brightness(0.8);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.171);
  color: #ffffffd3;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  backdrop-filter: blur(2px) brightness(0.7);
  transition: background 0.2s, color 0.2s, transform 0.2s, backdrop-filter 0.3s ease;
}

.streaming-btn:hover:not(.active) {
  backdrop-filter: blur(7px) brightness(0.9) saturate(100%);
  color: #fce4ba;
  transform: scale(1.05);
}
.streaming-menu {
  list-style: none;
  margin: 0;
  padding: 15px;
  position: absolute;
  top: calc(78%);
  left: 50%;
  transform: translateX(-50%) translateY(-1rem) scaleY(0.8);
  transform-origin: top center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(7px) brightness(0.8);
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 0.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  min-width: 200px;
  z-index: 100;
  transition: opacity 0.18s ease, transform 0.2s ease;
}
.streaming-menu li + li {
  margin-top: 8px;
}
.streaming-menu a {
  color: #f4c97d;
  text-decoration: none;
  transition: color 0.2s;
}
.streaming-menu a:hover {
  color: #ffffff;
}
/* Show and center dropdown with smooth animation */
.streaming-container.open .streaming-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scaleY(1);
  pointer-events: auto;
}
/* Responsive: on narrow screens, full width and static positioning */

/* Contenedor para videos progresivos */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

/* Ultra‑low fallback images to avoid blank backgrounds */
/* Ultra‑low fallback images to avoid blank backgrounds */
.bg-image{
  position: fixed;
  inset: 0;                    /* fill the viewport */
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  max-width: none;
  max-height: none;
  display: block;              /* avoid inline img quirks */
  object-fit: cover;           /* scale to cover screen */
  object-position: center center;
  -webkit-filter: blur(12px) brightness(0.55);
  filter: blur(12px) brightness(0.55);
  z-index: -1;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;        /* don't capture clicks */
}
@supports (height: 100dvh) {
  .bg-image{ height: 100dvh; min-height: 100dvh; }
}
.bg-image.show{ opacity: 1; }

/* UNUSED: JPG fallback removed in favor of direct MP4 */
.bg-image-ultra-super-show{
width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.5);
  transform: scale(1.05);
  opacity: 0;                 /* start hidden until ready */
  transition: opacity .5s ease;
}
/* UNUSED: JPG fallback removed in favor of direct MP4 */
.bg-image-ultra{
width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.5);
  transform: scale(1.05);
  opacity: 0;                 /* start hidden until ready */
  transition: opacity .5s ease;
}
/* Video de baja resolución con blur y escala ligera */
.bg-video.lowres {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) brightness(0.5);
  transform: scale(1.05);
  opacity: 0;                 /* start hidden until ready */
  transition: opacity .8s ease-out;  /* smoother fade-in */
}
.bg-video.lowres.loaded {      /* fade in when ready */
  opacity: 1;
}
/* Video principal oculto hasta que cargue */
.bg-video.highres {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
/* Activa cuando el highres está listo */
.bg-video.highres.loaded {
  opacity: 1;
}

a,
#to-login,
#to-register {
  color: #f4c97d;
  text-decoration: none;
}

/* Ensure visited links stay the same color */
a:visited,
#to-login:visited,
#to-register:visited {
  color: #f4c97d;
}

/* Optional hover state for a subtle effect */
a:hover,
#to-login:hover,
#to-register:hover {
  color: #ffffff;
}

/* Ensure active (pressed) state does not turn purple */
a:active,
#to-login:active,
#to-register:active {
  color: #f4c97d;
}

/* Mobile nav toggle button (hidden by default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 0.7rem;
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 600px) {
  /* Mobile nav dropdown effect */
  .nav-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    position: absolute;
    top: 60px;
    left: 2px;
    width: 174px;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(3px);
    border-top: 0.5px solid rgba(255,255,255,0.3);
    border-bottom: 0.3px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem) scaleY(0.8);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.2s ease;
  }
  .nav-container.open .nav-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
  }
  /* Show the hamburger button on mobile */
  .nav-toggle {
    display: block;
  }
  /* Layout brand and toggle in nav container */
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  /* Hide nav bubble on mobile */
  .nav-bubble {
    display: none !important;
  }
}


/* === MOBILE NAV OVERLAY & BODY LOCK === */
.nav-overlay{
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.nav-overlay.open{ opacity: 1; pointer-events: auto; }
body.nav-open{ overflow: hidden; }
@media (min-width: 600px){ .nav-overlay{ display: none; } }

/* Ensure mobile dropdown sits above overlay */
@media (max-width: 600px){
  .nav-list{ z-index: 1001; }
}
/* Ícono Perfil en nav (esquina superior derecha) */
.nav-container{ 
  position:relative; 
}
.nav-profile{ 
  position:absolute; 
  right:12px; 
  top:17px; 
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  width:34px; 
  height:34px;
  border-radius:999px; 
  color:#fff; 
  border:1px solid rgba(255,255,255,.18); 
  background: rgba(255,255,255,.06); 
  text-decoration:none;
  cursor:pointer;
}
@media (max-width:600px){
   .nav-profile{ 
    top:1px; /* en móviles, una columna */ 
    background: rgba(255, 255, 255, 0);
    border:0px}
  }

.nav-profile:hover{ 
  filter: brightness(1.05); 
}
